package com.yex.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yex.common.utils.PageUtils;
import com.yex.dao.OrderBankDao;
import com.yex.entity.OrderBankEntity;
import com.yex.service.OrderBankService;
import com.yex.utils.Query;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("orderBankService")
public class OrderBankServiceImpl extends ServiceImpl<OrderBankDao, OrderBankEntity> implements OrderBankService {

    @Override
    public PageUtils queryPage(Map<String, Object> params,String filter) {
        Page<OrderBankEntity> page = new Query<OrderBankEntity>(params).getPage();
        List<OrderBankEntity> orderBankEntityList = baseMapper.selectPageFilter(page, filter);
        page.setRecords(orderBankEntityList);
        return new PageUtils(page);
    }

}
